import React, { Component } from 'react'
import '../assets/style/img_c.less'
export default class Img extends Component {
    render() {
        return (
            this.props.form == "icon"?
            <div className="Img">
                <img className="iconImg" onClick={this.props.onClick} src={require('../assets/images/' + this.props.src)} alt="" />
            </div>:
            <>
                <img onClick={this.props.onClick} src={require('../assets/images/' + this.props.src)} alt="" />
            </>
        )
    }
}

